package com.iplay.dahua.chapter2.decorator;

import org.springframework.beans.BeanUtils;

import java.time.LocalDateTime;
import java.time.ZoneId;

/**
 * @author dangwu
 * @since 2021/7/27 5:08 下午
 */
public class PersonDecorator {
    private ConcretePerson concretePerson;

    public void setConcretePerson(ConcretePerson concretePerson) {
        this.concretePerson = concretePerson;
    }

    public void operation() {
        concretePerson.operation();
    }

    public static void main(String[] args) {
        Person  person= null;
        Person p = new Person();
        //Source must not be null
        BeanUtils.copyProperties(null, p);

    }
}
